package com.pms.exception;

import lombok.Data;

/**
 * 业务异常
 */
@Data
public class BusinessException extends RuntimeException {


    private Integer code;
    private String message;

    private static final long serialVersionUID = 1L;

    public BusinessException(String message) {
        this.code = 500;
        this.message = message;
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }


}